import request from '@/utils/request'
export const memberCart = () => {
  return request({
    url: '/member/cart',
    method: 'get'
  })
}
export const memberCartSelected = data => {
  return request({
    url: '/member/cart/selected',
    method: 'put',
    data
  })
}
export const memberCartId = (id, data) => {
  return request({
    url: `/member/cart/${id}`,
    method: 'put',
    data
  })
}
export const memberCartCount = () => {
  return request({
    url: '/member/cart/count',
    method: 'get'
  })
}

export const memberCartDel = data => {
  return request({
    url: '/member/cart',
    method: 'delete',
    data
  })
}
export const memberOrderPre = data => {
  return request({
    url: '/member/order/pre',
    method: 'get',
    data
  })
}
